import request from '@/utils/request'

export function getTagList() {
    return request({
        url: process.env.VUE_APP_ADMIN_API + '/front/listAllBlogTag',
        method: 'get'
    })
}

export function deleteBatchTag(params) {
    return request({
        url: process.env.VUE_APP_ADMIN_API + '/admin/blogTag/delete',
        method: 'post',
        data: params
    })
}

export function addTag(params) {
    return request({
        url: process.env.VUE_APP_ADMIN_API + '/admin/blogTag/add',
        method: 'post',
        data: params
    })
}

export function editTag(params) {
    return request({
      url: process.env.VUE_APP_ADMIN_API + '/admin/blogTag/update',
      method: 'post',
      data: params
    })
  }
